package com.springboot.template;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

// 返回json数据的controller
@Controller
@SpringBootApplication
public class Application {

    @RequestMapping("/")
    String home(Model model) {
    	model.addAttribute("test","testt");
        return "index";
    }
    public static void main(String[] args) throws Exception {
        SpringApplication.run(Application.class, args);
    }
    
}
